package com.dxf.sysadmin.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 评价记录
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("`evalute-record`")
@ApiModel(value="Evalute-record对象", description="评价记录")
public class EvaluteRecord extends Model<EvaluteRecord> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "评价人")
    @TableField("userId")
    private Long userId;

    @ApiModelProperty(value = "被评价人")
    @TableField("teacherId")
    private Long teacherId;

    @ApiModelProperty(value = "评价任务")
    @TableField("taskId")
    private Long taskId;

    @ApiModelProperty(value = "指标id")
    @TableField("targetId")
    private Long targetId;

    @ApiModelProperty(value = "选中备选项")
    @TableField("itemId")
    private Long itemId;

    @ApiModelProperty(value = "课程id")
    @TableField("courseId")
    private Long courseId;

    @ApiModelProperty(value = "评价时间")
    @TableField(value = "evaluteTime",fill = FieldFill.INSERT)
    private LocalDateTime evaluteTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
